import request from '@/utils/request'
//轮播图数据
export const swiperApi = () =>
  request({
    url: '/home/swiper'
  })
//房屋数据
export const housesApi = (params) =>
  request({
    url: '/houses',
    params
  })
//获取城市列表
export const cityinApi = (val) =>
  request({
    url: '/area/city',
    params: {
      level: val
    }
  })
/**
 *
 * @returns  热门城市
 */
export const cityinHeatApi = () =>
  request({
    url: '/area/hot'
  })
export const condiSeatchApi = (id) =>
  request({
    url: '/houses/condition',
    params: {
      id
    }
  })
